package com.my.structuraltype.mediator.computer;

public class CPU extends Colleague {
	
	private String vedioData;
	private String soundData;
	
	public CPU(Mediator mediator) {
		super(mediator);
	}
	
	public void operation(String data) {
		System.out.println("CPU read data from CD");
		this.vedioData = data.split(",")[0];
		this.soundData = data.split(",")[1];
		this.getMediator().change(this);
	}
	/**
	 * @return the vedioData
	 */
	public String getVedioData() {
		return vedioData;
	}

	/**
	 * @param vedioData the vedioData to set
	 */
	public void setVedioData(String vedioData) {
		this.vedioData = vedioData;
	}

	/**
	 * @return the soundData
	 */
	public String getSoundData() {
		return soundData;
	}

	/**
	 * @param soundData the soundData to set
	 */
	public void setSoundData(String soundData) {
		this.soundData = soundData;
	}

}
